package com.base.service;

import java.sql.Connection;
import java.sql.SQLException;
import java.util.List;
import java.util.Map;

import javax.servlet.http.HttpServletRequest;

import com.lazyzhao.util.pagination.Pagination;

public class ColumnService extends BasicService {

	private static final String TABLE_NAME = "p_phone_column";
	
	

	public Map<String,Object> findColumnInfoById(Connection conn,Map<String,Object> params)throws SQLException{
		
		String sql = "select  * from p_phone_column ";
		
		return queryMap(conn, TABLE_NAME, params);
	}
	

	  public int insertColumn(Connection conn, Map<String, Object> objects) throws SQLException {
	    return this.query.insert(conn, tname(TABLE_NAME), objects);
	  }

	  public int updateColumn(Connection conn, Map<String, Object> objects, String[] wheres) throws SQLException {
	    return this.query.update(conn, tname(TABLE_NAME), objects, wheres);
	  }
}
